import request from "@/utils/request";

export function findPage(data) {
  return request({
    url: "/api/crm/warn/findPage",
    method: "post",
    data: data,
  });
}

export function saveOrUpdate(data) {
  return request({
    url: "/api/crm/warn/saveOrUpdate",
    method: "post",
    data: data,
  });
}

export function deleteApi(data) {
  return request({
    url: "/api/crm/warn/delete",
    method: "post",
    data: data,
  });
}

export function getDetailById(data) {
  return request({
    url: "/api/crm/warn/getDetailById/" + data,
    method: "get",
  });
}

export function uploadFile(data) {
  return request({
    url: "/api/app/file/uploadFile",
    method: "post",
    data: data,
    redirect: "follow",
  });
}

// export function getDetailById(id) {
//   return request({
//     url: `/api/app/getDetailById/${id}`,
//     method: "get",
//   });
// }
